package com.firewolf.fr.s004_command;

import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;

import com.firewolf.fr.utils.FreeMarkerUtil;

import freemarker.template.Template;
import freemarker.template.TemplateException;

public class Macro {

	public static void main(String [] s) throws TemplateException, IOException{
//		Template template = FreeMarkerUtil.getTemplate("004_macro_use.ftl");
//		Template template = FreeMarkerUtil.getTemplate("004_macro01.ftl");
		Template template = FreeMarkerUtil.getTemplate("004_macro_use01.ftl");
		Writer w = new OutputStreamWriter(System.out);
		template.process(null, w);
	}
	
	
}
